package com.sunny.fetch.pojo;

import javax.persistence.*;

@Table(name = "f_us_tltr")
public class FUsTltr {
    @Id
    private Long tid;

    /**
     * 日期
     */
    private String date;

    /**
     * 收益率 LT COMPOSITE (>10 Yrs)
     */
    private Float ltc;

    /**
     * 20年期CMT利率(TREASURY 20-Yr CMT)
     */
    private Float cmt;

    /**
     * 外推因子EXTRAPOLATION FACTOR
     */
    @Column(name = "e_factor")
    private Float eFactor;

    public FUsTltr(Long tid, String date, Float ltc, Float cmt, Float eFactor) {
        this.tid = tid;
        this.date = date;
        this.ltc = ltc;
        this.cmt = cmt;
        this.eFactor = eFactor;
    }

    public FUsTltr() {
        super();
    }

    /**
     * @return tid
     */
    public Long getTid() {
        return tid;
    }

    /**
     * @param tid
     */
    public void setTid(Long tid) {
        this.tid = tid;
    }

    /**
     * 获取日期
     *
     * @return date - 日期
     */
    public String getDate() {
        return date;
    }

    /**
     * 设置日期
     *
     * @param date 日期
     */
    public void setDate(String date) {
        this.date = date;
    }

    /**
     * 获取收益率 LT COMPOSITE (>10 Yrs)
     *
     * @return ltc - 收益率 LT COMPOSITE (>10 Yrs)
     */
    public Float getLtc() {
        return ltc;
    }

    /**
     * 设置收益率 LT COMPOSITE (>10 Yrs)
     *
     * @param ltc 收益率 LT COMPOSITE (>10 Yrs)
     */
    public void setLtc(Float ltc) {
        this.ltc = ltc;
    }

    /**
     * 获取20年期CMT利率(TREASURY 20-Yr CMT)
     *
     * @return cmt - 20年期CMT利率(TREASURY 20-Yr CMT)
     */
    public Float getCmt() {
        return cmt;
    }

    /**
     * 设置20年期CMT利率(TREASURY 20-Yr CMT)
     *
     * @param cmt 20年期CMT利率(TREASURY 20-Yr CMT)
     */
    public void setCmt(Float cmt) {
        this.cmt = cmt;
    }

    /**
     * 获取外推因子EXTRAPOLATION FACTOR
     *
     * @return e_factor - 外推因子EXTRAPOLATION FACTOR
     */
    public Float geteFactor() {
        return eFactor;
    }

    /**
     * 设置外推因子EXTRAPOLATION FACTOR
     *
     * @param eFactor 外推因子EXTRAPOLATION FACTOR
     */
    public void seteFactor(Float eFactor) {
        this.eFactor = eFactor;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", tid=").append(tid);
        sb.append(", date=").append(date);
        sb.append(", ltc=").append(ltc);
        sb.append(", cmt=").append(cmt);
        sb.append(", eFactor=").append(eFactor);
        sb.append("]");
        return sb.toString();
    }
}